<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2020/3/4
 * Time: 17:07
 */

namespace app\api\validate;


use think\Validate;

class Recruit extends Validate
{
    protected $rule = [
        'uid|用户ID'=>'require',
        'title|标题'=>'require|max:30',
        'content|详情'=>'require|max:300',
        'img|图片'=>'require',
        'classify|分类'=>'require'
    ];

    public function add(){
        return $this->only(['uid','title','content','img','addr','classify']);
    }
}